<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Cookie Test</title>


</head>
<body>
	<input id="cookie_value" type="text" />
	<input id="setbtn" type="button" value="SetCookie" />
	<input id="getbtn" type="button" value="GetCookie" />
	
	<script type="text/javascript">
		document.getElementById("setbtn").onclick=function(){
			var value = document.getElementById("cookie_value").value;
			setCookie("cookie_name",value);
			alert("set cookie; value : "+value);
		}
		
		document.getElementById("getbtn").onclick=function(){
			var getvalue = getCookie("cookie_name");
			alert("get cookie; value : "+getvalue);
		}
	</script>
	<script type="text/javascript" src="../script/cookie.js" ></script>
</body>
</html>